@extends('layouts.base')
@section('title', '审核商品图片管理')
@section('content')
    <div class="container-fluid">
        <!-- ============================================================== -->
        <!-- Bread crumb and right sidebar toggle -->
        <!-- ============================================================== -->
        <div class="row page-titles">
            <div class="col-md-5 align-self-center">
                <h3 class="text-themecolor">审核商品图片</h3>
            </div>
            <div class="col-md-7 align-self-center">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="javascript:void(0)">首页</a></li>
                    <li class="breadcrumb-item">审核商品图片管理</li>
                    <li class="breadcrumb-item active">审核商品图片</li>
                </ol>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header bg-success">
                        <h4 class="m-b-0 text-white">审核商品图片</h4>
                    </div>
                    <div class="card-body"></div>
                    <div class="card-body">
                    <form class="needs-validation" method="post" action="{{ route('admin.goods.toexamineupdate') }}" novalidate>  
                    <input type="hidden" name="id" value="{{$result->id}}">
                        @csrf
                    	<div class="form-body">
                        <div class="form-group row">
                            </div>
                            <div class="form-group row">
                                <label class="control-label text-right col-md-2" for="">审核状态：</label>
                                <div class="col-md-7">
                                    <input type="radio" value="0" @if ( old('states', $result->states) == 0) checked @endif class="check" name="states" data-radio="iradio_square-green" id="square-radio-1">
                                    <label class="custom-control-label" for="square-radio-1">未审核</label>
                                    <input type="radio" value="1" @if ( old('states', $result->states) == 1) checked @endif class="check"  name="states" data-radio="iradio_square-green" id="square-radio-2">
                                    <label class="custom-control-label" for="square-radio-2">审核中</label>
                                    <input type="radio" value="2" @if ( old('states', $result->states) == 2) checked @endif class="check" name="states" data-radio="iradio_square-green" id="square-radio-3">
                                    <label class="custom-control-label" for="square-radio-3">审核失败</label>
                                    <input type="radio" value="3" @if ( old('states', $result->states) == 3) checked @endif class="check"  name="states" data-radio="iradio_square-green" id="square-radio-4">
                                    <label class="custom-control-label" for="square-radio-4">审核成功</label>
                                </div>
                            </div>
                            
                            <div class="form-group row">
                                <label class="control-label text-right col-md-2" for="">审核失败原因：</label>
                                <div class="col-md-7">
                                    <textarea name="opinion" class="form-control" autocomplete="off" required="" placeholder="请输入审核失败原因..." aria-invalid="false">{{$result->opinion}}</textarea>
                                </div>
                            </div>
                        </div>          		
                      	<div class="form-actions">
                            <div class="row">
                                <div class="col-md-8">
                                    <div class="row">
                                        <div class="offset-sm-3 col-md-9">
                                            <button type="submit" class="btn btn-success"> <i class="fa fa-check"></i> 提交</button>
                                            <a href="{{ route('admin.goods.index') }}"><button type="button" class="btn btn-danger"><i class=" fas fa-times"></i> 取消</button></a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- END MODAL -->
    
@stop
